package com.appkubes.fintech.restful.application.user.entity.vo;

import com.appkubes.fintech.restful.application.user.entity.dto.EmergencyContactDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.*;
import java.io.Serializable;
import java.util.List;

/**
 * @author Jiahong Chen
 * @date 2019/11/2
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserContactInfoVO implements Serializable {

    @ApiModelProperty("用户key")
    @NotBlank(message = "用户key不能为空")
    String userKey;

    @ApiModelProperty("用户联系人列表")
    @NotNull(message = "紧急联系人不能为空")
    List<EmergencyContactDTO> emergencyContactDTOList;

}
